/**
 * @file test_linked_stack.c
 * Test file for a generic LinkedStack data structure
 * @author Denis Ollier
 * @ingroup Test
 */

#include "test_linked_stack.h"

int main (void)
{
	linked_stack my_linked_stack;
	unsigned int return_value;

	my_linked_stack = linked_stack_new();
	linked_stack_push(my_linked_stack, (void*) 1);
	linked_stack_push(my_linked_stack, (void*) 2);
	linked_stack_push(my_linked_stack, (void*) 3);
	linked_stack_push(my_linked_stack, (void*) 4);
	linked_stack_push(my_linked_stack, (void*) 5);

	printf("Peek : %u\n", (unsigned int) linked_stack_peek(my_linked_stack));
	printf("Peek : %u\n", (unsigned int) linked_stack_peek(my_linked_stack));

	//while((return_value = (unsigned int) linked_stack_pop(my_linked_stack)))
		//printf("Pop : %u\n", return_value);

	linked_stack_dispose(my_linked_stack);
	return EXIT_SUCCESS;
}
